package cn.uai.activiti8.entity;

import com.mybatisflex.annotation.Table;

import java.time.LocalDateTime;

/**
 * @desc
 * @author uai
 * @version 1.0
 * @since 2025年05月27日 6:22
 */
@Table(value = "approval_apply_instance", camelToUnderline = false)
public class ApplyProcessInstance extends Entity {

    /**
     * 申请人
     */
    private String applicant;

    /**
     * 请假类型 0:事假, 1:陪产假, 2:病假, 3:调休, 4:年假, 5:婚假; 6:借款流程; 7:商品管理流程
     */
    private Integer type;

    /**
     * 请假事由
     */
    private String reason;

    /**
     * 流程实例ID
     */
    private String processInstanceId;

    /**
     * 流程状态 0: 进行中, 1: 审批通过, 2: 审批拒绝, 3:审批驳回
     */
    private Integer status;

    /**
     * 请假开始日期
     */
    private LocalDateTime startDate;

    /**
     * 请假结束日期
     */
    private LocalDateTime endDate;


    public String getApplicant() {
        return applicant;
    }

    public void setApplicant(String applicant) {
        this.applicant = applicant;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public LocalDateTime getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDateTime startDate) {
        this.startDate = startDate;
    }

    public LocalDateTime getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDateTime endDate) {
        this.endDate = endDate;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
